package bscorp.appbase.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;
import java.util.Date;

/**
 * 工单表
 */
@DatabaseTable
public class Order implements Serializable {
    /**
     * 工单状态---新建工单
     */
    public static final String ORDER_NEW = "new_order";
    /**
     * 工单状态---工单已经接，待检修
     */
    public static final String ORDER_WAIT_REPAIRE = "wait_repaire";
    /**
     * 工单状态---工单已检修，待验收
     */
    public static final String ORDER_WAIT_CHECK = "wait_check";
    /**
     * 工单状态---工单验收失败，带检修
     */
    public static final String ORDER_AGAIN_REPAIRE = "repaire_again";
    /**
     * 工单状态---工单验收成功
     */
    public static final String ORDER_SUCCESS = "success";
    @DatabaseField(generatedId = true)
    int id;
    /**
     * 提报用户ID
     */
    @DatabaseField
    int reportUserId;
    /**
     * 工单状态
     */
    @DatabaseField
    String type;
    /**
     * 检修人
     */
    @DatabaseField
    int repaireUserId;
    /**
     * 创建时间
     */
    @DatabaseField
    Date time;
    /**
     * 问题描述
     */
    @DatabaseField
    String description;
    /**
     * 检修的设备Id
     */
    @DatabaseField
    int deviceId;
    /**
     * 检修的设备名字
     */
    @DatabaseField
    String deviceName;

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public int getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(int deviceId) {
        this.deviceId = deviceId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getReportUserId() {
        return reportUserId;
    }

    public void setReportUserId(int reportUserId) {
        this.reportUserId = reportUserId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getRepaireUserId() {
        return repaireUserId;
    }

    public void setRepaireUserId(int repaireUserId) {
        this.repaireUserId = repaireUserId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}